Algorithmic Differentiation Through Automatic Graph Elimination Ordering (ADTAGEO)
نویسندگان
چکیده
Algorithmic Differentiation Through Automatic Graph Elimination Ordering (ADTAGEO) is based on the principle of Instant Elimination: Instead of storing a representation of the complete Computational Graph (tape-based approach of ADOL-C [1]) during the execution of the code to be differentiated and applying some elimination sequence afterwards, we dynamically maintain a DAG representing only active variables that are alive at any point in time. Whenever an active variable is deallocated or its value is overwritten the corresponding vertex in the Live-DAG will be eliminated immediately by the well-known vertex elimination rules [2]. Consequently, the total memory requirement is similar to that of the sparse forward mode. However, if local variables are destructed in the opposite order of their construction (as in C++), single assignment sequences of a code are in effect differentiated in reverse mode. Especially if compiler generated temporaries are destroyed in this way Instant Elimination leads to statement level reverse mode of ADIFOR [3] naturally. More generally, the user determines the elimination order intentionally (or unintentionally) by the order in which he declares variables. This opens the opportunity to overcome the categorical separation between forward and reverse mode by creating hybrid modes by splitting the computation of derivatives in forward and reverse parts. So a tradeoff can be achieved between the time consuming forward mode and the memory intensive reverse mode of AD. If the subgraph spanned between the independent and dependent variables becomes bipartite by Instant Elimination than the desired derivatives are full accumulated in the Live-DAG. Thus no explicit initiation of sweeps is required. Note that a bipartite Live-DAG can be achieved often easily by restructuring the source code: Define a toplevel routine with independents and dependents only as arguments and all other active variables locally in that top-level routine. Then Instant Elimination makes sure that all vertices located between independent and dependent variables will be removed on termination of the top-level routine execution.
منابع مشابه
Incremental Computation of Taylor Series and System Jacobian in DAE solving using Automatic Differentiation INCREMENTAL COMPUTATION OF TAYLOR SERIES AND SYSTEM JACOBIAN IN DAE SOLVING USING AUTOMATIC DIFFERENTIATION
We propose two efficient automatic differentiation (AD) schemes to compute incrementally Taylor series and System Jacobian for solving differential-algebraic equations (DAEs) by Taylor series. Our schemes are based on topological ordering of a DAE’s computational graph and then partitioning the topologically sorted nodes using structural information obtained from the DAE. Solving a DAE by Taylo...
متن کاملVertex-ordering Algorithms for Automatic Differentiation of Computer Codes
In the context of Automatic Differentiation of functions represented by computer code via the vertex elimination approach first advocated by Griewank and Reese (Automatic Differentiation of Algorithms, SIAM, 1991, p126-135), we present two approximate algorithms based on the linearised computational graph of the input code. The first is a statement reordering algorithm aiming to tune the AD-gen...
متن کاملVertex Ordering Characterizations of Graphs of Bounded Asteroidal Number
Asteroidal Triple-free (AT-free) graphs have received considerable attention due to their inclusion of various important graphs families, such as interval and cocomparability graphs. The asteroidal number of a graph is the size of a largest subset of vertices such that the removal of the closed neighbourhood of any vertex in the set leaves the remaining vertices of the set in the same connected...
متن کاملOn Optimal Reorderings of Sparse Matrices for Parallel Cholesky Factorizations
The height of the elimination tree has long acted as the only criterion in deriving a suitable fill-preserving sparse matrix ordering for parallel factorization. Although the deficiency in adopting height as the criterion for all circumstances was well recognized, no research has succeeded in alleviating this constraint. In this paper, we extend the unit-cost fill-preserving ordering into a gen...
متن کاملOn Optimal Fill-Preserving Orderings of Sparse Matrices for Parallel Cholesky Factorizations
In this paper, we consider the problem of nding llpreserving ordering of a sparse symmetric and positive de nite matrix such that the reordered matrix is suitable for parallel factorization. We extended the unitcost ll-preserving ordering into a generalized class that can adopt various aspects in parallel factorization, such as computation, communication and algorithmic diversity. Based on the ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009